You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > Vector Structure > Vector Methods > Vector.GroupSum Method
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
Vector.GroupSum Method

Sums items from Src with matching corresponding indexes from Bins and places result in self.

Syntax
C#
Visual Basic
public TVec GroupSum([In] TMtxVecInt Bins, [In] TMtxVec Src, [In] int BinsMax);

The size of self is set to Bins.Max+1 provided that sufficient memory is available. BinsMax with default value of -1 indicates that Bins.Max call is made internally. The routine does not perform additional range checking, if BinsMax is provided explicitely (memory overwrite is possible).

Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!